﻿using FirstFloor.ModernUI.Presentation;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelElectCalcModernUI.ViewModel.CalcRes
{
    public class FactoryResModel : NotifyPropertyChanged
    {
        //static SellerResModel content;
        ObservableCollection<FactoryResSignle> factoryRes;
        ObservableCollection<FactoryResSignle> factoryResDetail;
        double everyPrice;
        double totPower;
        double totPrice;
        double totReturnPrice;


        public FactoryResModel() { }
        public ObservableCollection<FactoryResSignle> FactoryRes
        {
            get
            {
                if (factoryRes == null)
                    factoryRes = new ObservableCollection<FactoryResSignle>();
                return factoryRes;
            }
            set
            {
                factoryRes = value;
                OnPropertyChanged("FactoryRes");
            }
        }
        public double TotReturnPrice
        {
            get
            {
                return totReturnPrice;
            }
            set
            {
                totReturnPrice = value;
                OnPropertyChanged("TotReturnPrice");
            }
        }
        public double EveryPrice
        {
            get
            {
                return everyPrice;
            }

            set
            {
                everyPrice = value;
                OnPropertyChanged("EveryPrice");
            }
        }

        public double TotPower
        {
            get
            {
                return totPower;
            }

            set
            {
                totPower = value;
                OnPropertyChanged("TotPower");
            }
        }

        public double TotPrice
        {
            get
            {
                return totPrice;
            }

            set
            {
                totPrice = value;
                OnPropertyChanged("TotPrice");
            }
        }

        public ObservableCollection<FactoryResSignle> FactoryResDetail
        {
            get
            {
                if (factoryResDetail == null)
                    factoryResDetail = new ObservableCollection<FactoryResSignle>();
                return factoryResDetail;
            }
        }
    }
}
